
Introduction and NHST
University of Amsterdam
2025-09-09
In this lecture we aim to:
Reading: Chapters 1, 2, 3
\(H_0\)
\(H_A\)
95% confidence interval
\[SE = \frac{\text{Standard deviation}}{\text{Square root of sample size}} = \frac{s}{\sqrt{n}}\]

n <- 10 # Sample size
k <- 0:n # Discrete probability space
p <- .5 # Probability of head
coin <- 0:1
permutations <- factorial(n) / ( factorial(k) * factorial(n-k) )
# permutations
p_k <- p^k * (1-p)^(n-k) # Probability of single event
p_kp <- p_k * permutations # Probability of event times
# the occurrence of that event
title <- "Binomial Null distribution"
# col=c(rep("red",2),rep("beige",7),rep("red",2))
barplot( p_kp,
main=title,
names.arg=0:n,
xlab="number of heads",
ylab="P(%)",
col='beige',
ylim=c(0,.3) )
# abline(v = c(2.5,10.9), lty=2, col='red')
text(.6:10.6*1.2,p_kp,round(p_kp,3),pos=3,cex=.5)
Conditional probability of the observed test statistic or more extreme assuming the null hypothesis is true.
Reject \(H_0\) when:
A statistic that summarizes the data and is used for hypothesis testing, because we know how it’s distributed under different hypotheses
Common test statistics:
Alpha determines how willingly we reject the null hypothesis:
No scientific worker has a fixed level of significance at which from year to year, and in all circumstances, he rejects hypotheses; he rather gives his mind to each particular case in the light of his evidence and his ideas. (Fisher, 1956)
Play around with this app to get an idea of the probabilities

Scientific & Statistical Reasoning